//
//  LGPatientBreatheTextCell.m
//  HeartDisease_YHJK
//
//  Created by 1234 on 2025/10/17.
//  市一 -- 慢阻肺、哮喘 -- 患者档案的Cell -- 文本

#import "LGPatientBreatheTextCell.h"

@implementation LGPatientBreatheTextCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.type = LGPositionTypeMiddle;
        [self.contentView addSubview:self.contentLabel];
        [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).offset(viewPix(1));
            make.bottom.equalTo(self.contentView).offset(-viewPix(1));
            make.left.equalTo(self.contentView).offset(viewPix(12));
            make.right.equalTo(self.contentView).offset(-viewPix(14));
        }];
    }
    return  self;
}

-(UILabel *)contentLabel{
    if(!_contentLabel){
        _contentLabel = [UILabel lableWithText:@"" colorString:@"#606266" textFont:LGFont(16) textAlignment:NSTextAlignmentLeft lines:0];
    }
    return _contentLabel;
}

@end
